@extends('layouts.base')
@section('title',$episode->raw_name)
@section('keyWords',$episode->key_word)
@section('description',$episode->full_name)

@section('content')


    <meta name="robots" content="noindex,nofollow">
    <article class="well">
        @include('episode._breadCrumb')
        <img style="float: left;margin: 6px" src="{{$episode->coverage_image}}" width="240px" height="360px"
             class="img-responsive img-rounded img-thumbnail" alt="{{$episode->name_en.$episode->name_zh}}">
        <div>
            <h1 class="text-center">{{$episode->full_name}}</h1>

            <p style="font-size: 10px;">
            {!! $episode->body !!}
            <hr>
            <span class="price"><strong>单价:<del>{{rand(3,99)}}}</del>元(CNY)</strong></span>
            <span>TRY美剧外设店</span>
            <span datetime="{{$episode->updated_at->addYear(1)}}">过期时间:{{$episode->updated_at->addYear(1)->diffForHumans()}}</span>
            </p>

            <div class="btn-group btn-group-justified" role="group"
                 aria-label="百度网盘下载,百度网盘在线观看,磁力链接下载,种子下载,电驴下载">
                @if(strlen($episode->url_baidupan)>1)
                    <a role="button" href={{$episode->url_baidupan}} title="百度网盘下载" rel="nofollow" target="_blank"
                       class="btn-default btn"><img
                                src="/web-icon/baidu-icon.png" class="download-icon"></a>
                    <a role="button" class="btn-default btn" title="小米路由下载"
                       href="{{ 'https://d.miwifi.com/d2r/?url='.base64_encode($episode->url_baidupan).'&name='.$episode->full_name.'&src='.$episode->showUrl }}"
                       rel="nofollow" target="_blank"><img src="/web-icon/mi-icon.png"
                                                           class="download-icon"></a></a>
                @endif
                @if(strlen($episode->url_torrent)>1)
                    <a role="button" class="btn-default btn" href="{{$episode->url_torrent}}" rel="nofollow"
                       title="BT种子下载"
                       target="_blank"><img src="/web-icon/bt-icon.png" width="18" height="16"
                                            class="bt-icon"></a></a>
                @endif
                @if(strlen($episode->url_magnet)>1)
                    <a role="button" class="btn-default btn" href="{{$episode->url_magnet}}" rel="nofollow"
                       title="磁力链接下载"
                       target="_blank"><img src="/web-icon/mag-icon.png"
                                            class="download-icon"></a></a>
                    <a role="button" class="btn-default btn" title="小米路由下载"
                       href="{{'https://d.miwifi.com/d2r/?url='.base64_encode($episode->url_magnet).'&name='.$episode->full_name.'&src='.$episode->showUrl }}"
                       rel="nofollow" target="_blank"><img src="/web-icon/mi-icon.png"
                                                           class="download-icon"></a></a>
                @endif

                @if(strlen($episode->url_ed2k)>1)
                    <a role="button" class="btn-default btn" href="{{$episode->url_ed2k}}" rel="nofollow"
                       title="2dek电驴下载"
                       target="_blank"><img src="/web-icon/ed2k-icon.png"
                                            class="download-icon"></a></a>
                @endif
                @if(strlen($episode->url_other)>1)
                    <a role="button" class="btn-default btn" href="{{$episode->url_other}}" rel="nofollow" title="网盘下载"
                       target="_blank"><img src="/web-icon/other.png"
                                            class="download-icon"></a></a>
                @endif
                @if(strlen($episode->url_video)>1)
                    <a role="button" class="btn-default btn" href="{{$episode->url_video}}" rel="nofollow"
                       title="视频在线播放"
                       target="_blank"><img src="/web-icon/video-icon.png" class="download-icon"></a></a>
                @endif
            </div>

        </div>


    </article>
@endsection


@section('ld_json')
    <script type="application/ld+json">
    {
    "@context": "http://schema.org/",
    "@type": "Product",
    "name": "{{$episode->full_name}}",
    "image": "{{$episode->coverage_image}}",
    "description": "{{$episode->full_name.'百度网盘下载,百度网盘在线观看,磁力链接下载,种子下载,电驴下载'}}",
    "brand": {
    "@type": "Thing",
    "name": "TRYTV"
    },

    "offers": {
    "@type": "Offer",
    "priceCurrency": "CNY",
    "price": "0.49",
    "priceValidUntil": "{{$episode->updated_at->addYear(1)}}",
    "itemCondition": "http://schema.org/UsedCondition",
    "availability": "http://schema.org/InStock",
    "seller": {
    "@type": "Organization",
    "name": "TRY美剧淘宝外设店"
    }
    }
    }


    </script>

@endsection